home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 1053 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.7 KB

  1. Path: newshost.lanl.gov!tanmoy
  2. From: tanmoy@qcd.lanl.gov (Tanmoy Bhattacharya)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: stricmp()
  5. Date: 11 Jan 1996 04:29:12 GMT
  6. Organization: Los Alamos National Laboratory
  7. Message-ID: <TANMOY.96Jan10212912@qcd.lanl.gov>
  8. References: <8213293982604@demosys.gcomm.com>
  9. NNTP-Posting-Host: qcd.lanl.gov
  10. Mime-Version: 1.0
  11. Content-Type: text
  12. In-reply-to: jackal@gcomm.com's message of 10 Jan 1996 22:03:16 EST
  13.  
  14. --text follows this line--
  15. In article <8213293982604@demosys.gcomm.com> jackal@gcomm.com (Jack
  16. Alvrus) writes: 
  17. <snip>
  18.  
  19. A rare post with so many wrong assumptions!!! :-)
  20.  
  21.    Here's a fun question for ya':
  22.  
  23.    stricmp() is an ANSI library function, right?  So it should exhibit, if
  24.  
  25. no.
  26.  
  27.    not consistent, at least *documented* behavior, right?
  28.  
  29. no and no. Usually library functions have certain requirments on their
  30. parameters, and a violation of these can lead to undefined behaviour,
  31. which need neither be consistent nor documented.
  32.  
  33.    So, is stricmp("a","^") always less than zero or greater than zero, and
  34.    if neither, is there any documented behavior in this case?
  35.  
  36. Any use of an object with external linkage leads to undefined
  37. behaviour if the implementation does not explicitly permit and
  38. define such use.
  39.  
  40. Cheers
  41. Tanmoy
  42. --
  43. tanmoy@qcd.lanl.gov(128.165.23.46) DECNET: BETA::"tanmoy@lanl.gov"(1.218=1242)
  44. Tanmoy Bhattacharya O:T-8(MS B285)LANL,NM87545 H:#9,3000,Trinity Drive,NM87544
  45. Others see <gopher://yaleinfo.yale.edu:7700/00/Internet-People/internet-mail>,
  46. <http://alpha.acast.nova.edu/cgi-bin/inmgq.pl>or<ftp://csd4.csd.uwm.edu/pub/
  47. internetwork-mail-guide>. -- <http://nqcd.lanl.gov/people/tanmoy/tanmoy.html>
  48. fax: 1 (505) 665 3003   voice: 1 (505) 665 4733    [ Home: 1 (505) 662 5596 ]
  49.